package com.webshop.app.entity.util;

import java.util.Properties;

public class Util {

	public static Properties getInitProperties() {
		Properties result = new Properties();

		// We need to tell the context where and how to look
		result.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
		result.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");

		result.setProperty("java.naming.provider.url", "jnp://localhost:1099");
//		result.setProperty("jnp.socket.Factory", "org.jnp.interfaces.TimedSocketFactory");

		return result;
	}
}
